/**
 * 系统校验
 */
layui.define(['api'],function(exports){
	var $ = layui.jquery;

	var api = layui.api;

	var action = {
		succss:function(res) {
			if(res.status != 200) {
				window.location.href='/blog/back/login';
			}
		},
		error:function(e) {
			window.location.href='/blog/back/login';
		}
	};
	var system = {
		checkLogin:function() {
			api.checkLogin(action.succss,action.error);
		}
	};

	system.checkLogin();
	exports('system',system);
});